CC = gcc
CFLAGS = -O3

EXECUTABLES = bw mtf huff compress

all: $(EXECUTABLES)

bw: bw.o
	$(CC) $(CFLAGS) bw.o -o bw

mtf: mtf.o
	$(CC) $(CFLAGS) mtf.o -o mtf

huff: huff.o quicksort.o
	$(CC) $(CFLAGS) huff.o quicksort.o -o huff

compress: compress.o
	$(CC) $(CFLAGS) compress.o -o compress

.c.o: 
	$(CC) $(CFLAGS) -c  $(COPT) $<
	
clean:
	rm -rf *~ *.o $(EXECUTABLES)

tar:
	tar -cvf *.pdf ./sequential/* ./parallel/*	
